﻿<UserControl x:Class="DemoNYTimes.CriticControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    >
    <Border BorderThickness="1" CornerRadius="0,0,4,4" BorderBrush="Black" Background="WhiteSmoke" Padding="4" >
        <Grid x:Name="LayoutRoot">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Image VerticalAlignment="Top" MaxHeight="75" MaxWidth="75" Stretch="Uniform" Margin="2" Source="{Binding Critic.Image}" ImageFailed="OnImageFailed" ToolTipService.ToolTip="{Binding Critic.ImageCredit}">
            </Image>
            <StackPanel Grid.Column="1" Margin="2">
                <TextBlock Text="{Binding Critic.DisplayName}" TextWrapping="NoWrap" FontWeight="Bold"/>
                <TextBlock Text="{Binding Critic.Bio}" TextWrapping="Wrap" MaxWidth="192"/>
            </StackPanel>
        </Grid>
    </Border>
</UserControl>
